<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form th:action="@{/company/update}" method="post">
        <input type="hidden" name="sid" th:value="${staff.sid}">
        姓名:<input type="text" name="sname" th:value="${staff.sname}"><br>
        性别：<input type="radio" name="sex" value="1" th:field="*{staff.sex}">男
              <input type="radio" name="sex" value="2" th:field="*{staff.sex}">女<br>
        出生日期：<input type="date" name="birthday" dataformatas="yyyy-MM-dd" th:value="${#dates.format(staff.birthday,'yyyy-MM-dd')}"/><br/>
        入职时间：<input type="date" name="createtime" dataformatas="yyyy-MM-dd" th:value="${#dates.format(staff.createtime,'yyyy-MM-dd')}"/><br/>
        学历：<input type="text" name="school" th:value="${staff.school}"><br>
        职位：
        <select name="zid">
                <option value="">请选择</option>
                <option th:each="function : ${function}"
                        th:selected="${staff.zid eq function.zid}"
                        th:value="${function.zid}"
                        th:text="${function.zname}">
                </option>
         </select><br/>
        住址：<input type="text" name="address" th:value="${staff.address}"><br/>
        电话：<input type="text" name="phone" th:value="${staff.phone}"><br/>
        紧急联系人：<input type="text" name="contact" th:value="${staff.contact}"><br/>
        所属部门：
        <select name="bid">
            <option value="">请选择</option>
            <option th:each="bumen : ${bumen}"
                    th:selected="${staff.bid eq bumen.bid}"
                th:value="${bumen.bid}"
                th:text="${bumen.bname}">
            </option>
        </select><br/>
        <input type="submit" value="确定"/><br/>
    </form>
</body>
</html>